import Vue from "vue"
import App from "./App.vue"

import "./mock/mockServer.js" //启动自搭建临时服务器
import "swiper/css/swiper.min.css" //引入轮播图样式
import VueLazyload from "vue-lazyload"

import router from "./router"
import store from "./store"

import TypeNav from "./components/TypeNav"
import LoginRegisterFooter from "./components/LoginRegisterFooter"
import Pagination from "./components/Pagination"

Vue.component(TypeNav.name, TypeNav)
Vue.component(LoginRegisterFooter.name, LoginRegisterFooter)
Vue.component(Pagination.name, Pagination)

Vue.config.productionTip = false

import load from "@/assets/aa.gif"
Vue.use(VueLazyload, {
  // loading: 'dist/loading.gif',
  loading: load,
})

new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  store,
  router,
  render: (h) => h(App),
}).$mount("#app")
